package org.giovanolli.mumi.view.validator;

import org.giovanolli.mumi.controller.business.PrepaidModel;
import org.giovanolli.mumi.entities.Prepaid;
import org.giovanolli.mumi.entities.filter.EntityFilter;
import org.giovanolli.mumi.entities.filter.PrepaidFilter;
import org.giovanolli.mumi.service.PrepaidService;
import org.giovanolli.mumi.service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * The Class PrepaidModelValidator.
 */
@Component
public class PrepaidModelValidator extends AbstractViewStateModelValidator<Prepaid, PrepaidModel> {

	/** The prepaid service. */
	@Autowired
	private PrepaidService prepaidService;

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.view.validator.AbstractViewStateModelValidator#getFilter()
	 */
	@Override
	public EntityFilter<Prepaid> getFilter() {
		return new PrepaidFilter();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.view.validator.AbstractViewStateModelValidator#getService()
	 */
	@Override
	public Service<Prepaid> getService() {
		return prepaidService;
	}

}